﻿bastard = {
	opposites = {
		legitimized_bastard
		child_of_concubine
		wild_oat
		disputed_heritage
	}
	diplomacy = -1
	
	courtly_opinion = -5
	zealot_opinion = -10

	same_opinion = 5

	dynasty_opinion = -15

	legitimacy_gain_mult = -0.1

	inheritance_blocker = all
	claim_inheritance_blocker = all

	category = fame
	bastard = illegitimate
	
	ruler_designer_cost = 0
	
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_bastard_desc
			}
			desc = trait_bastard_character_desc
		}
	}

	ai_honor = -10
	ai_energy = 15
}

legitimized_bastard = {
	opposites = {
		bastard
		child_of_concubine
		wild_oat
		disputed_heritage
	}
	diplomacy = -1
	courtly_opinion = -5
	zealot_opinion = -5
	legitimacy_gain_mult = -0.05
	bastard = legitimate

	dynasty_opinion = -10
	category = fame
	
	ruler_designer_cost = 0
	
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_legitimized_bastard_desc
			}
			desc = trait_legitimized_bastard_character_desc
		}
	}

	ai_honor = -5
	ai_energy = 15
}

disputed_heritage = {
	category = fame
	opposites = {
		bastard
		wild_oat
		legitimized_bastard
	}

	diplomacy = -1
	legitimacy_loss_mult = 0.1
	
	courtly_opinion = -5
	zealot_opinion = -5

	dynasty_house_opinion = -10
	
	shown_in_ruler_designer = no
	
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_disputed_heritage_desc
			}
			desc = trait_disputed_heritage_character_desc
		}
	}

	ai_energy = 10
}

# Separate male and female versions of this traits due to different desc
child_of_concubine_female = {
	category = fame
	group = child_of_concubine
	level = 1
	opposites = {
		bastard
		legitimized_bastard
		wild_oat
	}
	diplomacy = -1
	
	flag = initial_legitimacy_nerf
	
	shown_in_ruler_designer = no
	
	name = trait_child_of_concubine
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_child_of_concubine_desc
			}
			desc = trait_child_of_concubine_character_desc
		}
	}
	icon = child_of_concubine.dds

	ai_energy = 15
}

child_of_concubine_male = {
	category = fame
	group = child_of_concubine
	level = 2
	opposites = {
		bastard
		legitimized_bastard
		wild_oat
	}
	diplomacy = -1
	
	flag = initial_legitimacy_nerf
	
	shown_in_ruler_designer = no
	
	name = trait_child_of_concubine
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_child_of_male_concubine_desc
			}
			desc = trait_child_of_male_concubine_character_desc
		}
	}
	icon = child_of_concubine.dds

	ai_energy = 15
}

#Children born out of wedlock in religions without bastardy
wild_oat = {
	category = fame
	opposites = {
		bastard
		legitimized_bastard
		child_of_concubine
	}
	
	diplomacy = -1
	
	courtly_opinion = -5
	flag = initial_legitimacy_nerf
	
	ruler_designer_cost = 0

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_wild_oat_desc
			}
			desc = trait_wild_oat_character_desc
		}
	}
}

bastard_founder = {

	opposites = {
		bastard
		legitimized_bastard
		child_of_concubine
		wild_oat
	}

	inheritance_blocker = all
	claim_inheritance_blocker = all
	category = fame
	diplomacy = -1
	
	zealot_opinion = -10
	legitimacy_gain_mult = -0.1

	shown_in_ruler_designer = no
	
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					NOT = { exists = this }
				}
				desc = trait_bastard_founder_desc
			}
			desc = trait_bastard_founder_character_desc
		}
	}

	ai_energy = 15
}